import request from '../utils/request'

/**
 * @Description:保存班次
 * @author TangYong
 * @date 2022/12/17
 */
export function saveClasses(data) {
    return request({
        url: 'fras/ad/classes/save',
        method: 'post',
        data
    })
}

/**
 * @Description:/info/{classesId}
 * @author TangYong
 * @date 2022/12/17
 */
export function getClassesInfoById(id){
    return request({
        url: 'fras/ad/classes/info/'+id,
        method: 'get'
    })
}

/**
 * @Description:/delete/{classesId}
 * @author TangYong
 * @date 2022/12/17
 */
export function delClassesById(id){
    return request({
        url: 'fras/ad/classes/delete/'+id,
        method: 'get'
    })
}
export function getClasseslist(data) {
    return request({
        url: `fras/ad/classes/list?page=${data.page}&limit=${data.limit}`,
        method: 'get',
    })
}

